﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true"
    CodeFile="OrdenServicio.aspx.cs" Inherits="OrdenServicio" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <form id="Orden" runat="server"><asp:HiddenField ID="HiddenField1" runat="server" /><asp:ScriptManager ID="ScriptManager2" runat="server"> </asp:ScriptManager>
    <table style="width: 700px">
      <tr>
        <td align ="right" style="width: 231px" ><asp:Button ID="Button2" runat="server" Text=" Nueva Orden > " onclick="Button2_Click"  CssClass="blackButton3"/></td>
        <td class="col-width" style="width: 154px">&nbsp;</td>
      </tr>
      <tr class="td1">
        <td align="right" style="width: 231px">
            <label>Numero de Orden:</label></td>
        <td align="left" class="col-width" style="width: 154px">
            <asp:TextBox ID="IdOrden" runat="server" CssClass="input1" ForeColor="#CC0000" 
                ReadOnly="True"></asp:TextBox>
          </td>
        <td align="left" style="width: 180px">
            &nbsp;</td>
        <td align="left">
            &nbsp;</td>
        <td align="right">&nbsp;</td>
        <td align="left" >&nbsp;</td>
      </tr>
      <tr class="td1">
        <td align="right" style="width: 231px">Empresa</td>
        <td align="left" class="col-width" style="width: 154px">
            <asp:DropDownList ID="IdEmpresa" runat="server">
            </asp:DropDownList>
          </td>
        <td style="text-align: right; width: 180px;">
            <label for="corg" style="text-align: right">Fecha de ingreso:</label></td>
        <td align="left">
            <asp:TextBox ID="txtFechaIngreso" runat="server"></asp:TextBox>
          <asp:CalendarExtender ID="FechaIngresoExtender"
                         runat="server" TargetControlID = "txtFechaIngreso" Format="yyyy-MM-dd" > </asp:CalendarExtender>
          </td>
        <td align="right">&nbsp;</td>
        <td align="left" >&nbsp;</td>
      </tr>
      <tr class="td2">
        <td align="right" style="width: 231px"><label >Nombre del puesto:</label></td>
        <td align="left" class="col-width" style="width: 154px">
            <asp:DropDownList ID="Puesto" runat="server">
            </asp:DropDownList>
          </td>
        <td align="right" style="width: 180px">No. de Vacantes</td>
        <td align="left">
            <asp:TextBox ID="TotalVacantes" runat="server" Height="23px" Width="59px"></asp:TextBox>
             <asp:RegularExpressionValidator ID="ReVacantes" runat="server" ErrorMessage="Vacantes debe ser un número" ValidationExpression="\d+" ControlToValidate="TotalVacantes"></asp:RegularExpressionValidator>
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="ReVacantes" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
          </td>
      </tr>
      <tr class="td1">
        <td align="right" style="width: 231px"><label>Fecha requerida de contratación:</label></td>
        <td align="left" class="col-width" style="width: 154px" >de:<asp:TextBox ID="txtFechaContratacion" runat="server"></asp:TextBox>
          <asp:CalendarExtender ID="FechaContratacionExtender"
                         runat="server" TargetControlID = "txtFechaContratacion" Format="yyyy-MM-dd" > </asp:CalendarExtender></td>
         <asp:RegularExpressionValidator ID="ReFecha" runat="server" ErrorMessage="La fecha debe tener un formato AAAA-MM-DD" ValidationExpression="\d\d\d\d.\d\d.\d\d" ControlToValidate="txtFechaContratacion"></asp:RegularExpressionValidator>
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="ReFecha" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
        <td align="right" style="width: 180px">a:</td>
         <asp:RegularExpressionValidator ID="ReFeFinal" runat="server" ErrorMessage="La fecha debe tener un formato AAAA-MM-DD" ValidationExpression="\d\d\d\d.\d\d.\d\d" ControlToValidate="FechaReqFinal"></asp:RegularExpressionValidator>
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="ReFeFinal" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
         
        <td align="left"><asp:TextBox ID="FechaReqFinal" 
                runat="server"></asp:TextBox>
                 <asp:CalendarExtender ID="CalendarExtender3"
                         runat="server" TargetControlID = "FechaReqFinal" Format="yyyy-MM-dd" > </asp:CalendarExtender></td>
      </tr>
    </table>
    <table>
      <tr class="td2">
        <td><ul class="tabs">
            <li><a href="#tab1">Cliente</a></li>
            <li><a href="#tab2">Descripcion del candidato</a></li>
            <li><a href="#tab3">Descripcion del puesto</a></li>
            <li><a href="#tab4">Lugar y horario de trabajo</a></li>
            <li><a href="#tab5">Salario y Condiciones</a></li>
            <li><a href="#tab6">Observaciones</a></li>
          </ul>
          <div class="tab_container">
            <div id="tab1" class="tab_content">
            <asp:UpdatePanel ID="UpdBuscaCte" runat="server">
                <ContentTemplate>
              <table width="100%" style="width: 600px">
                <tr class="td1">
                  <td align="right"><label>Cliente:</label></td>
                  <td colspan="3" align="left">
                      <asp:DropDownList ID="IdCliente" runat="server" 
                          onselectedindexchanged="IdCliente_SelectedIndexChanged">
                      </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnCargaCte" runat="server" Text="Carga Cliente" 
                            onclick="btnCargaCte_Click" />
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label for="corg">Razón Social:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="RazonSocial" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label for="corg">RFC:</label></td>
                  <td align="left">
                      <asp:TextBox ID="RFC" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                  <td align="right">Giro de la empresa</td>
                  <td align="left">
                      <asp:TextBox ID="GiroEmpresa" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label for="corg">Dirección:</label></td>
                  <td align="left" >
                      <asp:TextBox ID="DireccionEmpresa" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                  <td align="right">Colonia</td>
                  <td align="left">
                      <asp:TextBox ID="ColoniaEmpresa" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label for="corg" ReadOnly="True">Teléfono </label></td>
                  <td align="left">
                      <asp:TextBox ID="Telefono" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                  <td align="right">CP</td>
                  <td align="left">
                      <asp:TextBox ID="CP" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label for="curl">Municipio:</label></td>
                  <td colspan="1" align="left">
                      <asp:TextBox ID="Municipio" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                  <td align="right"><label for="curl">Estado:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="Estado" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label for="curl">Contacto:</label></td>
                  <td align="left" >
                      <asp:TextBox ID="Contacto" runat="server"></asp:TextBox>
                    </td>
                  <td align="right"><label for="curl">Correo Electrónico:</label></td>
                  <td align="left">
                      <asp:TextBox ID="email" runat="server"></asp:TextBox>
                    </td>
                </tr>
              </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            </div>
            <!--tab_content end-->
            <div id="tab2" class="tab_content">
              <table style="width: 600px">
                <tr class="td1" style="height: 22px">
                  <td align="right" style="width: 145px"><label for="curl">Edad mínima:</label></td>
                  <td align="left" >
                      <asp:TextBox ID="EdadMinima" runat="server" Width="50px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="ReEdad" runat="server" 
                          ErrorMessage="Edad mínima debe ser un número" ValidationExpression="\d+" 
                          ControlToValidate="EdadMinima" Display="None"></asp:RegularExpressionValidator>
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="ReEdad" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
                    </td>
                  <td align="right" style="width: 268px"><label for="curl">Edad máxima</label></td>
                  <td align="left">
                      <asp:TextBox ID="EdadMaxima" runat="server" Width="50px"></asp:TextBox>
                      <asp:RegularExpressionValidator ID="ReEdad2" runat="server" 
                          ErrorMessage="Edad máxima debe ser un número" ValidationExpression="\d+" 
                          ControlToValidate="EdadMaxima" Display="None"></asp:RegularExpressionValidator>
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="ReEdad2" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right" style="width: 145px"><label for="curl">Genero:</label></td>
                  <td align="left">
                      <asp:DropDownList ID="Genero" runat="server">
                          <asp:ListItem>Femenino</asp:ListItem>
                          <asp:ListItem>Masculino</asp:ListItem>
                          <asp:ListItem>Indistinto</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td align="right" style="width: 268px"><label for="curl">Escolaridad></td>
                  <td align="left">
                      <asp:DropDownList ID="Escolaridad" runat="server">
                          <asp:ListItem>Primaria</asp:ListItem>
                          <asp:ListItem>Secundaria</asp:ListItem>
                          <asp:ListItem>Técnico</asp:ListItem>
                          <asp:ListItem>Trunco Preparatoria</asp:ListItem>
                          <asp:ListItem>Preparatoria</asp:ListItem>
                          <asp:ListItem>Trunco Licenciatura</asp:ListItem>
                          <asp:ListItem>Licenciatura</asp:ListItem>
                          <asp:ListItem>Trunco Posgrado</asp:ListItem>
                          <asp:ListItem>Posgrado</asp:ListItem>
                          <asp:ListItem>Indistinto</asp:ListItem>
                          <asp:ListItem></asp:ListItem>
                      </asp:DropDownList>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right" style="width: 145px"><label>Título:</label></td>
                  <td colspan="1" align="left">
                      <asp:TextBox ID="Titulo" runat="server" Width="170px"></asp:TextBox>
                    </td>
                  <td style="text-align: right; width: 268px">Estado Civil</td>
                  <td align="left">
                      <asp:DropDownList ID="EstadoCivil" runat="server">
                          <asp:ListItem>Casado</asp:ListItem>
                          <asp:ListItem>Soltero</asp:ListItem>
                          <asp:ListItem>Indistinto</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right" style="width: 145px"><label >Estatura:</label></td>
                  <td align="left" >
                      <asp:TextBox ID="Estatura" runat="server"></asp:TextBox>
                    </td>
                  <td align="right" style="width: 268px"><label>Talla</label></td>
                  <td align="left">
                      <asp:TextBox ID="Talla" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right" style="width: 145px"><label>Idioma extranjero:</label></td>
                  <td align="left">
                      <asp:TextBox ID="IdiomaExtranjero" runat="server"></asp:TextBox>
                    </td>
                  <td style="text-align: right; width: 268px;">
                      <label for="curl">Otro:</label></td>
                  <td align="left">
                      <asp:TextBox ID="Otro" runat="server"></asp:TextBox>
                    </td>
                </tr>
              </table>
            </div>
            <!--tab_content end-->
            <div id="tab3" class="tab_content">
              <table style="width: 600px">
                <tr class="td1">
                  <td align="right"><label >Experiencia Requerida :</label></td>
                  <td align="left">
                      <asp:DropDownList ID="ExperienciaRequerida" runat="server">
                          <asp:ListItem>si</asp:ListItem>
                          <asp:ListItem>no</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td align="right"><label >Tiempo </label>
                    </td>
                  <td align="left">
                      <asp:TextBox ID="Tiempo" runat="server" Height="20px" Width="83px"></asp:TextBox>
                    &nbsp;&nbsp; años
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label>Conocimientos:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="Conocimiento" runat="server" Height="20px" Width="377px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label>Habilidades:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="Habilidades" runat="server" Height="20px" Width="377px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label>Actividades:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="Actividades" runat="server" Height="20px" Width="377px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label>Software a manejar: </label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="SoftwareaManejar" runat="server" Height="20px" Width="377px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td2">
                  <td align="right"><label>Personal a cargo:</label></td>
                  <td colspan="3" align="left">
                      <asp:DropDownList ID="PersonalCargo" runat="server">
                          <asp:ListItem>si</asp:ListItem>
                          <asp:ListItem>no</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                </tr>
                <tr class="td1">
                  <td align="right"><label>Cantidad:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="CantidadPersonalCargo" runat="server"></asp:TextBox>
                    </td>
                </tr>
              </table>
            </div>
            <!--tab_content end-->
            <div id="tab4" class="tab_content">
               <table style="width: 600px">
                <tr class="td1">
                  <td align="right"><label>Lugar de trabajo:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="LugardeTrabajo" runat="server" Width="377px">Requerido</asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" id="reqLugar" controltovalidate="LugardeTrabajo" errormessage="Intoduzca el lugar!" display ="None" />
            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="reqLugar" Width="350px"  HighlightCssClass="highlight" WarningIconImageUrl="~/images/icons/icon-warning.png" CloseImageUrl="~/images/icons/close.png" >
            </asp:ValidatorCalloutExtender>
                    </td>
                </tr>
              
                <tr class="td2">
                  <td align="right"><label>Colonia:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="ColoniaLugarTrabajo" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
              
                <tr class="td1">
                  <td align="right"><label>Entrecalles: </label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="EntreCallesLugarTrabajo" runat="server" Width="377px"></asp:TextBox>
                    </td>
                </tr>
              
                <tr class="td2">
                  <td align="right"><label>Comentarios:</label></td>
                  <td colspan="3" align="left">
                      <asp:TextBox ID="Comentarios" runat="server" Width="377px"></asp:TextBox>
                    </td>
                </tr>
                </table>
            </div>
            <!--tab_content end-->
            
            <div id="tab5" class="tab_content">
              <table style="width: 800px">
                <tr class="td1">
                  <td style="width: 138px; text-align: right">Rango de salario.<br />
                      </td>
                  <td style="width: 181px; text-align: left;" colspan="1">
                      <asp:TextBox ID="SalarioMinimo" runat="server" style="text-align: left"></asp:TextBox>
                    </td>
                  <td>a:</td>
                  <td>
                      <asp:TextBox ID="SalarioMaximo" runat="server"></asp:TextBox>
                    </td>
                  <td>
                      Observaciones:</td>
                  <td>
                      <asp:TextBox ID="ObservacionesSalario" runat="server" Height="16px" 
                          Width="236px"></asp:TextBox>
                    </td>
                  <td>
                      &nbsp;</td>
                </tr>
                <tr class="td1">
                  <td style="width: 138px; text-align: right">Periodo de Salario:
                      </td>
                  <td style="width: 181px; text-align: left;" colspan="1">
                      <asp:DropDownList ID="PeriodoSalario" runat="server">
                          <asp:ListItem>Semanal</asp:ListItem>
                          <asp:ListItem>Quincenal</asp:ListItem>
                          <asp:ListItem>Mensual</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td>&nbsp;</td>
                  <td style="text-align: right">
                      Tipo de moneda:</td>
                  <td colspan="2" style="text-align: left">
                      <asp:DropDownList ID="TipoMoneda" runat="server" style="text-align: left">
                          <asp:ListItem>Pesos</asp:ListItem>
                          <asp:ListItem>Dólares</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td>
                      &nbsp;</td>
                </tr>
                </table><table style="width: 600px">
                <tr class= "td2">
                  <td>Bonos</td>
                  <td><asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    <asp:GridView ID="grdDatos" runat="server"
                       Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                            GridLines="None" ForeColor="#333333">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="&#847;"/>
                            <asp:BoundField 
                             HeaderText="Concepto" 
                             ControlStyle-Width="100px" DataField="Concepto" SortExpression="Concepto" >
                            <ControlStyle Width="100px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Importe" 
                             ControlStyle-Width="100px" DataField="Cantidad" SortExpression="Cantidad" >
                            <ControlStyle Width="100px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Periodicidad" DataField="Periocidad" 
                                SortExpression="Periocidad" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Porcentaje" DataField="Porcentaje" 
                                SortExpression="Porcentaje" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    </ContentTemplate>
                    </asp:UpdatePanel></td>
                  <td>
           <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
              <a id="lnkPopup" runat ="server"> </a>
                <asp:Button ID="Button4" runat="server" Text="Agregar" />
                <asp:Panel ID="Panel1" runat="server" BackImageUrl="~/images/backgrounds/portfolio-3col-bg.jpg" Width="308" Height="196">
                  <table>
                    <tr>
                      <td>
                          <img </td="" src="images/icons/comment-icon.png"></img></td>
                    </tr>
                    <tr>
                      <td>&nbsp;Concepto</td><td>
                        <asp:TextBox ID="ConceptoBono" runat="server"></asp:TextBox>
                        </td></tr>
                    <tr>
                      <td>Cantidad:</td>
                      <td>
                          <asp:TextBox ID="ImporteBono" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                      <td>Periodicidad:</td>
                      <td>
                          <asp:TextBox ID="PeriodicidadBono" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Porcentaje</td>
                        <td> 
                            <asp:TextBox ID="txtPorBono" runat="server" Text = "0.0"></asp:TextBox> </td>
                    </tr>
                    <tr>
                      <td>
                          <asp:Button ID="btnGuardarBono" runat="server" Text="Agrega" 
                              onclick="btnGuardarBono_Click" />
                        </td>
                      <td>
                          <asp:Button ID="Button12" runat="server" Text="Cancel" />
                        </td>
                      <td> </td>
                      <td>&nbsp;</td>
                      
                    </tr>
                  </table>
                  </asp:Panel>
                <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server"                 
                CancelControlID="Button12"                
                PopupControlID="Panel1" 
                TargetControlID="Button4"
                BackgroundCssClass="modalBackground" 
                > </asp:ModalPopupExtender>

        </ContentTemplate>
        </asp:UpdatePanel>
            </td>
                  </tr><tr>
                  <td>Vales</td>
                  <td><asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                    <asp:GridView ID="grdDatos2" runat="server"
                       Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                            GridLines="None" ForeColor="#333333">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="&#847;"/>
                            <asp:BoundField 
                             HeaderText="Concepto" 
                             ControlStyle-Width="100px" DataField="Concepto" SortExpression="Concepto" >
                            <ControlStyle Width="100px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             HeaderText="Importe" 
                             ControlStyle-Width="100px" DataField="Cantidad" SortExpression="Cantidad" >
                            <ControlStyle Width="100px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Periodicidad" DataField="Periocidad" 
                                SortExpression="Periocidad" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Porcentaje" DataField="Porcentaje" 
                                SortExpression="Porcentaje" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    </ContentTemplate>
                    </asp:UpdatePanel></td>
                  <td>
           <asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>
              <a id="A1" runat ="server"> </a>
                <asp:Button ID="Button1" runat="server" Text="Agregar" />
                <asp:Panel ID="Panel2" runat="server" BackImageUrl="~/images/backgrounds/portfolio-3col-bg.jpg" Width="308" Height="196">
                  <table>
                    <tr>
                      <td>
                          <img </td="" src="images/icons/comment-icon.png"></img></td>
                    </tr>
                    <tr>
                      <td>&nbsp;Concepto</td><td>
                        <asp:TextBox ID="ConceptoVales" runat="server"></asp:TextBox>
                        </td></tr>
                    <tr>
                      <td>Cantidad:</td>
                      <td>
                          <asp:TextBox ID="ImporteVales" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                      <td>Periodicidad:</td>
                      <td>
                          <asp:TextBox ID="PeriodicidadVales" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Porcentaje</td>
                        <td> 
                            <asp:TextBox ID="txtPorVal" runat="server" Text = "0.0"></asp:TextBox> </td>
                    </tr>
                    <tr>
                      <td>
                          <asp:Button ID="Button3" runat="server" Text="Agrega" onclick="Button3_Click" />
                        </td>
                      <td>
                          <asp:Button ID="Button5" runat="server" Text="Cancel" />
                        </td>
                      <td> </td>
                      <td>&nbsp;</td>
                      
                    </tr>
                  </table>
                  </asp:Panel>
                <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"                 
                CancelControlID="Button5"                
                PopupControlID="Panel2" 
                TargetControlID="Button1"
                BackgroundCssClass="modalBackground" 
                > </asp:ModalPopupExtender>

        </ContentTemplate>
        </asp:UpdatePanel>
            </td>
                </tr>
               </table> <table style="width: 600px">
                <tr class= "td2">
                  <td>Comedor</td>
                  <td colspan="1">
                      <asp:DropDownList ID="TieneComedor" runat="server">
                          <asp:ListItem>Si</asp:ListItem>
                          <asp:ListItem>No</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td colspan="2">Transporte</td>
                  <td>
                      <asp:DropDownList ID="TieneTransporte" runat="server">
                          <asp:ListItem>Si</asp:ListItem>
                          <asp:ListItem>No</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                  <td>Prestaciones</td>
                  <td>
                      <asp:TextBox ID="Prestaciones" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td>Tipo contrato</td>
                  <td colspan="1">
                      <asp:DropDownList ID="IdTipoContrato" runat="server">
                      </asp:DropDownList>
                    </td>
                  <td colspan="2">Fecha Est. Inicio:</td>
                  <td>
                      <asp:TextBox ID="FechaEstimadaInicio" runat="server"></asp:TextBox>
                       <asp:CalendarExtender ID="CalendarExtender1"
                         runat="server" TargetControlID = "FechaEstimadaInicio" Format="yyyy-MM-dd"  
                CssClass="cal_Theme1"> </asp:CalendarExtender>
                    </td>
                  <td>Fecha Est. Terminación:</td>
                  <td>
                      <asp:TextBox ID="FechaEstimadaTerminacion" runat="server"></asp:TextBox>
                     <asp:CalendarExtender ID="CalendarExtender2"
                         runat="server" TargetControlID = "FechaEstimadaTerminacion" Format="yyyy-MM-dd"  
                CssClass="cal_Theme1"> </asp:CalendarExtender>
                    </td>
                    <td>
                        <asp:CheckBox ID="CheckBox1" Text = "¿ Fecha Abierta?" runat="server"  />
                    </td>
                </tr>
                <tr class= "td2">
                  <td>Vigencia&nbsp; Contrato</td>
                  <td colspan="1">
                      <asp:DropDownList ID="Vigencia" runat="server">
                          <asp:ListItem>3 meses</asp:ListItem>
                          <asp:ListItem>6 meses</asp:ListItem>
                          <asp:ListItem>9 meses</asp:ListItem>
                          <asp:ListItem>12 meses</asp:ListItem>
                          <asp:ListItem>Indefinido</asp:ListItem>
                      </asp:DropDownList>
                    </td>
                </tr>
              </table>
            </div>
            <!--tab_content end-->
            
            <div id="tab6" class="tab_content">
              <table style="width: 600px">
                <tr class="td1">
                  <td style="text-align: right">Horarios de entrevista:</td>
                  <td style="text-align: left">
                      <asp:TextBox ID="Horarios" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr class="td1">
                  <td>Observaciones</td>
                  <td style="text-align: left">
                      <asp:TextBox ID="Observaciones" runat="server" Height="48px" Rows="3" 
                          TextMode="MultiLine" Width="340px" style="text-align: left"></asp:TextBox>
                    </td>
                </tr>
              </table>
            </div>
            <!--tab_content end--> 
            
          </div>
          
          <!--tab_container end--> 
          
          <!--Tab Content End here-->
          
          <div class="clear"></div>
          <br /></td>
      </tr>
      <tr>
        <td><asp:Button ID="btnGuardar" runat="server" Text="Guardar" 
                CssClass="blackButton3" onclick="btnGuardar_Click" /></td>
      </tr>
    </table>
    </form>
</asp:Content>
